import i18n from '../../../i18n/i18n'
export const tableOption = {
  border: true,
  stripe: true,
  menuAlign: 'center',
  menuWidth: 350,
  align: 'center',
  refreshBtn: true,
  searchSize: 'mini',
  addBtn: false,
  editBtn: false,
  delBtn: false,
  viewBtn: false,
  searchBtn: false,
  props: {
    label: 'label',
    value: 'value'
  },
  column: [
    // 列表数据
    {
      label: i18n.t('users.nickName'),
      prop: 'nickName'
    }, {
      label: i18n.t('distributionMsg.distriTelPhone'),
      searchLabelWidth: i18n.t('language') === 'language' ? 120 : 80,
      search: true,
      prop: 'userMobile'
    }, {
      label: i18n.t('home.updateTime'),
      hide: true,
      type: 'datetimerange',
      prop: 'updateTime'
    }, {
      label: i18n.t('users.parentPhoneNumber'),
      prop: 'parentUserMobile'
    }, {
      label: i18n.t('distributionMsg.invitees'),
      prop: 'parentNickName',
      slot: true
    }, {
      label: i18n.t('distributionMsg.accumulatedConsumptionAmount'),
      prop: 'sumOfConsumption',
      sortable: true,
      slot: true
    }, {
      label: i18n.t('distributionMsg.accumulatedConsumptionTimes'),
      prop: 'expenseNumber',
      sortable: true,
      slot: true
    }, {
      label: i18n.t('order.applicationTime'),
      prop: 'auditingTime',
      type: 'datetimerange',
      sortable: true
    }, {
      width: 150,
      label: i18n.t('distributionMsg.auditStatus'),
      search: true,
      searchLabelWidth: i18n.t('language') === 'language' ? 120 : 80,
      type: 'select',
      prop: 'state',
      dicData: [
        {
          label: i18n.t('product.pendingReview'),
          value: 0
        }, {
          label: i18n.t('productComm.pass'),
          value: 1
        }, {
          label: i18n.t('productComm.noPass'),
          value: -1
        }
      ]
    }, {
      label: i18n.t('distribUserWallet.operator'),
      prop: 'sysUsername'
    }
  ]
}
